<?php
class Payment{
	
	protected $_paymentCode;
	protected $_account;
		
	public function setPaymentCode($paymentCode){
		$this->_paymentCode = $paymentCode;
		return $this;
	}
	
	public function getPaymentCode(){
		return $this->_paymentCode;
	}
		
	public static function createPaymentCode($codeVal){
 		//$code = md5($codeVal['objId'].'|'.$codeVal['customerId'].'|'.time());
 		$code = md5($codeVal['objId'].'|'.$codeVal['customerId']);
		//$code = $codeVal['objId'].'_'.$codeVal['customerId'].'_'.time();
		$code = substr($code,0,15);
		return $code;		
	}
	
}